<!DOCTYPE html>
<html lang="en" ng-app="app" ng-controller="backInit">
<head>
	<meta charset="UTF-8">
	<title ng-bind="settings.TITLE">CrapApi|应用接口管理系统</title>
	<meta name="keywords" content="CrapApi,api,crap,接口管理,应用接口管理,开源接口管理,开源api接口管理" />
	<meta name="description" content="CrapApi|一个由anjularjs+bootstrap+springMVC搭建的免费开源的API接口管理系统（应用接口管理系统），api.crap.cn" />
	<link href="{{settings.ICON}}" rel="shortcut icon" type="image/x-icon" />
	<link href="{{settings.ICON}}" rel="icon" type="image/x-icon" />
	<link href="{{settings.ICON}}" rel="shortcut" type="image/x-icon" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<link href="resources/framework/bootstrap-3.0.0/css/bootstrap.css" rel="stylesheet" type="text/css" />
	<link href="resources/framework/bootstrap-3.0.0/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
	<link href="resources/css/base.css?v=v8.0.5" rel="stylesheet" type="text/css" />
	<link href="resources/css/crapApi.css?v=v8.0.5" rel="stylesheet" type="text/css" />
	<link href="resources/css/setting.css?v=v8.0.5" rel="stylesheet" type="text/css" />
	<link href="resources/css/admin.css?v=v8.0.5" rel="stylesheet" type="text/css" />
</head>
<body>
	<!-- Top -->
	<input type="hidden" id="sessionAuth" value="{{sessionAdminAuthor}}">
	<input type="hidden" id="sessionRoleIds" value="{{sessionAdminRoleIds}}">
	<nav class="h50 fixed w t0 BGFFF z100 nav">
				<a class="navbar-brand fl main-bg" href="home.do" target="_blank">
					<img ng-src="{{settings.MINI_LOGO}}" />
				</a>

                <div class="fl h50 lh50 pl10 pr10 C000 f16 fw500" ng-if="$stateParams.projectName">
                    项目【<span ng-bind="$stateParams.projectName"></span> 】
				</div>
				<div class="fl h50 lh50 pl10 pr10 C000 f16 fw500" ng-if="!$stateParams.projectName">
					<span ng-bind="settings.TITLE"></span>
				</div>

				<div class="m0 f14 fr">
					<a href="#/profile" class="hover-main bl1 C555 h50 lh50 dis fr pl10 pr10" ng-click="profile(sessionAdminId)"><i class="iconfont f14 mt-5">&#xe603;</i>&nbsp;&nbsp;<span ng-bind="sessionAdminName"></span></a>
					<a href="home.do" class="hover-main C555 h50 lh50 dis fr pl10 pr10" onclick="loginOut()"><i class="iconfont f16 mt-5">&#xe609;</i>&nbsp;&nbsp;注销</a>
					<a href="#/admin/config/properties" class="hover-main C555 h50 lh50 dis fr pl10 pr10" ng-if="isSupperAdmin()"><i class="iconfont f14 mt-5">&#xe61a;</i>&nbsp;&nbsp;系统属性</span></a>

				</div>
	</nav>
	<!-- End:Top -->
	
		<div class="row h p0 m0 mt50">
				<!-- left -->
				<div class="left-menu shadow">
                    <div class="w250 fl h BGFFF main-color">
                        <a href="#/user/project/list?myself=true&type=-1&menu_a=menu-project"
                           ng-class="{true: 'hover-main active-main', false:'hover-main'}[$stateParams.menu_a == 'menu-project']">
                            <i class="iconfont f18 mr20 mt-3">&#xe61f;</i>
                            <span class="f14"> 我的项目</span>
                        </a>

                        <a href="#/profile?menu_a=menu-profile"
                           ng-class="{true: 'hover-main active-main', false:'hover-main'}[$stateParams.menu_a == 'menu-profile']"
                           ng-click="profile(sessionAdminId)">
                            <i class="iconfont f18 mr20 mt-3">&#xe603;</i>
                            <span class="f14"> 个人资料</span>
                        </a>

						<a href="#/user/article/dictionary/importFromSql?menu_a=menu-import"
						   ng-class="{true: 'hover-main active-main', false:'hover-main'}[$stateParams.menu_a == 'menu-import']">
                            <i class="iconfont f18 mr20 mt-3 fb">&#xe61c;</i>
							<span class="f14"> 导入数据库表</span>
						</a>

                        <!-- 管理员菜单 -->
                        <a href="#/admin/menu/list?parentId=0&menu_a=menu-menu&menuName=无"
                           ng-class="{true: 'hover-main active-main', false:'hover-main'}[$stateParams.menu_a == 'menu-menu']"
                           ng-if="isAdmin('','MENU')">
                            <i class="iconfont f18 mr20 mt-3">&#xe60f;</i>
                            <span class="f14"> 菜单管理</span>
                        </a>
                        <a href="#/admin/setting/list?menu_a=menu-setting&menu_b=menu-setting"
						    ng-class="{true: 'hover-main active-main', false:'hover-main'}[$stateParams.menu_a == 'menu-setting']"
							ng-if="isSupperAdmin()">
                            <i class="iconfont f18 mr20 mt-3">&#xe61a;</i>
                            <span class="f14"> 系统管理</span>
                        </a>
                        <a class="menu_a fl mr10 w tc cursor lh50 hover-main bb1" target="_blank"
                            href="http://api.crap.cn/index.do#/article/detail?projectId=web&moduleId=web&type=ARTICLE&id=153406311429601002715">
                            <i class="iconfont f16 mr20 mt-3">&#xe647;</i>
                            <span class="f14"> 捐赠作者</span>
                        </a>
                        <a class="menu_a fl mr10 w tc cursor lh50 hover-main bb1" target="_blank"
                           href="http://api.crap.cn/index.do#/article/detail?projectId=web&moduleId=web&type=ARTICLE&id=02c16933-2823-458d-83a0-6d5b8b752a25">
                            <i class="iconfont f18 mr20 mt-3">&#xe748;</i>
                            <span class="f14"> bug反馈</span>
                        </a>
                        <a class="menu_a fl mr10 w tc cursor lh50 hover-main bb1" target="_blank"
                           href="http://api.crap.cn/index.do#/article/detail?projectId=web&moduleId=web&type=ARTICLE&id=ffff-1522587078634-1017019456-0002">
                            <i class="iconfont f18 mr20 mt-3">&#xe650;</i>
                            <span class="f14"> 建议&留言</span>
                        </a>

                    </div>
			</div>
			<div ui-view="subMenu" class="h fixed"></div>
			<!-- End:left -->

			<!-- main -->
			<div class="p0 h mah ofy-a l250 fixed r0">
					<div class="pb50">
						<!-- 全局性不消失错误提示：如禁用了弹窗 -->
						<button type="button" class="mb5 p10 btn btn-danger btn-xs break-word ndis" id="global-error"></button>
						<div class="f16 fb p10 mb5 ndis" id="mian-error" ng-if="hasError(error,'mian-error')">
							<button type="button" class="btn btn-danger btn-xs break-word">
								<span class="glyphicon glyphicon-remove"></span>
								<span ng-if="error.indexOf('CrapApi-400')>0">
									404-抱歉，地址有误，网页找不到了
								</span>
								<span ng-bind="error" ng-if="error.indexOf('CrapApi-400')<0"></span>
							</button>
						</div>
						<div class="f16 fb p10 mb5 ndis" id="tip-error" ng-if="hasError(errorTips,'tip-error')">
							<button type="button" class="btn btn-danger btn-xs break-word">
								<span class="glyphicon glyphicon-remove"></span>
								<span ng-bind="errorTips"></span>
							</button>
							<button type="button" class="btn btn-default btn-xs" ng-if="isSupperAdmin()" ng-click="closeErrorTips()">
								<span class="glyphicon glyphicon-remove"></span>
								<span> 删除提示</span>
							</button>
						</div>
						<div ui-view="main" class="min-w700"></div>
					</div>
			</div>
			<!-- end:main -->
		</div>
	<script src="resources/framework/jquery-1.9.1.min.js"></script>
	<script src="resources/framework/jquery.cookie.js"></script>
	<script src="resources/framework/jquery.base64.js"></script>
	<script charset="utf-8" src="resources/framework/wang-editor-3.1.1/wangEditor.min.js"></script>

	<script src="resources/framework/angular-1.3.0.14/angular.js"></script>
	<script src="resources/framework/angular-1.3.0.14/angular-animate.min.js"></script>
	<script src="resources/framework/angular-ui-router-0.2.15.js"></script>
	
	<script src="resources/framework/bootstrap-3.0.0/js/bootstrap.js"></script>
	<script src="resources/framework/bootstrap-3.0.0/js/bootstrap-datetimepicker.min.js"></script>
	<script src="resources/framework/bootstrap-3.0.0/js/bootstrap-datetimepicker.zh-CN.js"></script>

	<script src="resources/js/app.js?v=v8.0.5"></script>
	<script src="resources/js/services.js?v=v8.0.5"></script>
	<script src="resources/js/userRouter.js?v=v8.0.5"></script>
	<script src="resources/js/router.js?v=v8.0.5"></script>
    <script src="resources/js/userControllers.js?v=v8.0.5"></script>
    <script src="resources/js/visitorControllers.js?v=v8.0.5"></script>
    <script src="resources/js/interfaceMethods.js?v=v8.0.5"></script>

    <script src="resources/js/validateAndRefresh.js?v=v8.0.5"></script>
    <script src="resources/js/core.js?v=v8.0.5"></script>
	<script src="resources/js/global.js?v=v8.0.5"></script>
	<script src="resources/js/crapApi.js?v=v8.0.5"></script>
	<script src="resources/js/json.js?v=v8.0.5"></script>
	<script src="resources/js/editor.js"></script>


	<!-- 提示窗口 -->
<div id="lookUp" class="look-up shadow">
	<div id="lookUpContent" class="look-up-content f12 tc">加载中....</div>
	<div id="pickTip"></div>
	<i class="iconfont i-close" onclick="iClose('lookUp')">&#xe615;</i>
</div>

<div id="fade"></div>
<div id="myDialog" class="look-up pt50">
		<div id="myDialog-title" class="CFFF f20 fw500 main-bg" style="margin-top:-50px;line-height:40px;padding-left:20px;height:40px;">
		</div>
		<div id="myDialogContent" class="look-up-content b0 f12 tl p10 BGFFF">
			<button type="button" class="btn btn-danger btn-xs break-word ml10 mb10 ndis" id="dialog-error" ng-if="hasError(error,'dialog-error')">
					<span class="glyphicon glyphicon-remove"></span>
					<span ng-bind="error"></span>
			</button>
			<div ui-view="detail"></div>
		</div>
		<i class="iconfont i-close CFFF f16" onclick="closeMyDialog('myDialog', 'myDialogContent')">&#xe615;</i>
		<i class="iconfont i-full CFFF f16" onclick="fullMyDialog('myDialog', 'myDialogContent')">&#xe62e;</i>
</div>   
<div class="tip-div" id="tip-div"></div>
<div id="float" class="folat">
		<div class="sk-wave">
        <div class="sk-rect sk-rect1"></div>
        <div class="sk-rect sk-rect2"></div>
        <div class="sk-rect sk-rect3"></div>
        <div class="sk-rect sk-rect4"></div>
        <div class="sk-rect sk-rect5"></div>
      </div>
</div>
<img style="display:none;" src="http://api-access-tatistics.oss-cn-qingdao.aliyuncs.com/ca.gif">	
</body>
</html>
